var teamwork = {
	init:function(){
		
		$.ToTopCtrl();
		
		var $project_filed_btn = $('#project_filed_btn');
		if($project_filed_btn.length > 0){
			$project_filed_btn.bind('click',function(){
				teamwork.gotoProject();
			});
		}
		
		var $strategy_btn = $('#strategy_btn');
		if($strategy_btn.length > 0){
			$strategy_btn.bind('click',function(){
				teamwork.gotoStrategy();
			});
		}
		
		var $offer_price_btn = $('#offer_price_btn');
		if($offer_price_btn.length > 0){
			$offer_price_btn.bind('click',function(){
				teamwork.gotoOfferPrice($(this));
			});
		}
		
	},
	gotoProject:function(){
		window.open('http://www.gzcanr.com/cooperate/index-cmd-step1.html');
	},
	gotoStrategy:function(){
		window.open('http://www.gzcanr.com/cooperate/index-cmd-strategy.html');
	},
	gotoOfferPrice:function($self){
		var lid = '';
		lid = $self.data('id');
		if(lid){
			window.open('http://www.gzcanr.com/cooperate/myQuoted.html');
		}else{
		   flogin.show();
		}
	}
	
}

// document init
$(function(){
    teamwork.init();
});